/**
 * 怀孕避孕情况
 */
$(function() {
	$.ajax({
		url:"/DataTable/selecPregnancy",
		type:"post",
		dataType:"json",
		success:function(map){
			var pregnancya = map.pregnancy;
			var pregnancys = document.getElementById("pregnancy");
			
			pregnancys.innerHTML = "<option value='0'>请选择</option>";
			for(var i = 0; i<pregnancya.length;i++){
				var opt=document.createElement("option");
				opt.innerText=pregnancya[i].pregnancy;
				opt.setAttribute("value",pregnancya[i].pregnancyId);
				pregnancys.appendChild(opt);
				}
			}
		})
})